# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  # Pick a unique cookie name to distinguish our session data from others'
  session :session_key => '_streaming_session_id'
  
  def expand(string)
    string = string.gsub(/\|/, ' ')
    string = string.gsub(/forwardslash/, '/')
    string = string.gsub(/dot/, '.')
    string = string.gsub(/comma/, ',')

    return string
  end
end
